package com.jevons.muffin.eventbus;

/**
 * 主要用于各个组件之间的调用，取代广播的作用
 * @author linaisheng
 * @email naisheng.li@southgis.com
 * Created at 2018/1/27.
 */

public class CustomEvent<T> {


    private String code;
    private T data;

    public CustomEvent(String code) {
        this.code = code;
    }

    public CustomEvent(String code, T data) {
        this.code = code;
        this.data = data;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

}
